﻿using System;

namespace DreamCube.Foundation.Security
{
    /// <summary>
    /// 安全加密解密的接口类
    /// </summary>
    public interface ISecurity
    {
        /// <summary>
        /// 加密数据
        /// </summary>
        /// <param name="data">需要加密的二进制数据</param>
        /// <returns></returns>
        Byte[] Encrypt(Byte[] data);

        /// <summary>
        /// 解密数据
        /// </summary>
        /// <param name="data">等待解密的，加密数据的二进制</param>
        /// <returns></returns>
        Byte[] Decrypt(Byte[] data);
    }
}
